package com.dao.secondary.device;

import com.model.domain.device.GetDevicePcbGpsInfoDO;
import com.model.pojo.device.DevicePcbGpsInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DevicePcbGpsInfoMapper {
    int deleteByPrimaryKey(@Param("devicePcbGpsInfoId") Long devicePcbGpsInfoId);

    int insert(DevicePcbGpsInfo record);

    int insertSelective(DevicePcbGpsInfo record);

    DevicePcbGpsInfo selectByPrimaryKey(@Param("tableName") String tableName, @Param("id") Long id);

    int updateByPrimaryKeySelective(DevicePcbGpsInfo record);

    int updateByPrimaryKey(DevicePcbGpsInfo record);

    //    List<DevicePcbGpsInfo> selectList(@Param("tableName") String tableName, @Param("startTime")String startTime,@Param("endTime")String endTime,@Param("dtu")String dtu);
    List<DevicePcbGpsInfo> selectList(@Param("getDevicePcbGpsInfoDO") GetDevicePcbGpsInfoDO getDevicePcbGpsInfoDO);

    List<Map<String,Object>> selectListGroupBy(@Param("getDevicePcbGpsInfoDO") GetDevicePcbGpsInfoDO getDevicePcbGpsInfoDO);

    void insertListSelective(List<DevicePcbGpsInfo> devicePcbGpsInfoList);

    void updateListSelective(List<DevicePcbGpsInfo> devicePcbGpsInfoList);

    int has(@Param("devicePcbGpsInfoId") Long devicePcbGpsInfoId, @Param("isDelete") Byte isDelete);
}